/**
 * @desc 异常错误列表
 */

// 请求正常
export const SuccessCode = {
  code: 100000,
  msg: '数据请求成功',
  success: true,
};

// 请求异常
const ErrorCode = {
  ErrorAccountErr: {
    code: 100001,
    msg: '当前账号与密码不符',
    success: false,
  },
  ErrorPasswordErr: {
    code: 100002,
    msg: '两次密码不符',
    success: false,
  },
  ErrorRegisterErr: {
    code: 100003,
    msg: '验证码不正确',
    success: false,
  },
  Error404: {
    code: 100004,
    msg: '当前访问链接不存在',
    success: false,
  },
  Error500: {
    code: 100005,
    msg: '服务器内部错误',
    success: false,
  },
  ErrorUploadImage: {
    code: 100006,
    msg: '上次图片资源报错',
    success: false,
  },
  ErrorSaveUserInfo: {
    code: 100007,
    msg: '用户信息保存出错',
    success: false,
  },
  ErrorUserNotExistOpenid: {
    code: 100008,
    msg: '用户的openid不存在',
    success: false,
  },
  ErrorUserVoted: {
    code: 100009,
    msg: '您今日已投票',
    success: false,
  },
  // 用户的信息不全
  ErrorUserVotParamErr: {
    code: 100010,
    msg: '投票失败',
    success: false,
  },
}

export default ErrorCode;